Add flags field to GtkTargetEntry table.
authorOwen Taylor <otaylor@redhat.com>
Sat, 23 Jan 1999 20:31:42 +0000 (20:31 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 23 Jan 1999 20:31:42 +0000 (20:31 +0000)
Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkeditable.c: Add flags field to
 GtkTargetEntry table.

* gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
 windows as always viewable, since we can't track their
 map-state reliably without speed problems. (Fixes
 problem where updating didn't occur properly within
 GtkPlug)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkwindow.c
gdk/x11/gdkwindow-x11.c
gtk/gtkeditable.c

index 108535fc0067910331b8be5f8903c2e92f8a31a5..d9f2210615857aa37446fc934d63ac04d5a706ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,35 @@
+Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkdnd.c (gdk_window_register_dnd): X expects
+        longs, not uint32 for XChangeProperty, when 
+        format == 32.
+
+       * gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
+        the MotifInitiatorInfo structure if necessary.
+
+       * gdk/gdkdnd.c: When extracting and constructing
+         Motif DND messages, don't use data.s[], data.l[]
+        since on 64bit architectures, these won't necessarily
+        be in the same place with data.b[]. 
+
+       * gtk/testdnd.c (target_drag_drop): Return TRUE for
+        drag_drop within the drop zone.
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
+        a XmTRANSFER_FAILURE if no drop site is found, not
+        on every drop!
+
+Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkeditable.c: Add flags field to 
+        GtkTargetEntry table.
+       
+       * gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
+        windows as always viewable, since we can't track their
+        map-state reliably without speed problems. (Fixes
+        problem where updating didn't occur properly within
+        GtkPlug)
+
 Sat Jan 23 13:41:00 1999  Jeff Garzik  <jgarzik@pobox.com>
 
        * gtk/gtkctree.c
index 108535fc0067910331b8be5f8903c2e92f8a31a5..d9f2210615857aa37446fc934d63ac04d5a706ca 100644 (file)
@@ -1,3 +1,35 @@
+Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkdnd.c (gdk_window_register_dnd): X expects
+        longs, not uint32 for XChangeProperty, when 
+        format == 32.
+
+       * gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
+        the MotifInitiatorInfo structure if necessary.
+
+       * gdk/gdkdnd.c: When extracting and constructing
+         Motif DND messages, don't use data.s[], data.l[]
+        since on 64bit architectures, these won't necessarily
+        be in the same place with data.b[]. 
+
+       * gtk/testdnd.c (target_drag_drop): Return TRUE for
+        drag_drop within the drop zone.
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
+        a XmTRANSFER_FAILURE if no drop site is found, not
+        on every drop!
+
+Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkeditable.c: Add flags field to 
+        GtkTargetEntry table.
+       
+       * gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
+        windows as always viewable, since we can't track their
+        map-state reliably without speed problems. (Fixes
+        problem where updating didn't occur properly within
+        GtkPlug)
+
 Sat Jan 23 13:41:00 1999  Jeff Garzik  <jgarzik@pobox.com>
 
        * gtk/gtkctree.c
index 108535fc0067910331b8be5f8903c2e92f8a31a5..d9f2210615857aa37446fc934d63ac04d5a706ca 100644 (file)
@@ -1,3 +1,35 @@
+Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkdnd.c (gdk_window_register_dnd): X expects
+        longs, not uint32 for XChangeProperty, when 
+        format == 32.
+
+       * gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
+        the MotifInitiatorInfo structure if necessary.
+
+       * gdk/gdkdnd.c: When extracting and constructing
+         Motif DND messages, don't use data.s[], data.l[]
+        since on 64bit architectures, these won't necessarily
+        be in the same place with data.b[]. 
+
+       * gtk/testdnd.c (target_drag_drop): Return TRUE for
+        drag_drop within the drop zone.
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
+        a XmTRANSFER_FAILURE if no drop site is found, not
+        on every drop!
+
+Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkeditable.c: Add flags field to 
+        GtkTargetEntry table.
+       
+       * gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
+        windows as always viewable, since we can't track their
+        map-state reliably without speed problems. (Fixes
+        problem where updating didn't occur properly within
+        GtkPlug)
+
 Sat Jan 23 13:41:00 1999  Jeff Garzik  <jgarzik@pobox.com>
 
        * gtk/gtkctree.c
index 108535fc0067910331b8be5f8903c2e92f8a31a5..d9f2210615857aa37446fc934d63ac04d5a706ca 100644 (file)
@@ -1,3 +1,35 @@
+Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkdnd.c (gdk_window_register_dnd): X expects
+        longs, not uint32 for XChangeProperty, when 
+        format == 32.
+
+       * gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
+        the MotifInitiatorInfo structure if necessary.
+
+       * gdk/gdkdnd.c: When extracting and constructing
+         Motif DND messages, don't use data.s[], data.l[]
+        since on 64bit architectures, these won't necessarily
+        be in the same place with data.b[]. 
+
+       * gtk/testdnd.c (target_drag_drop): Return TRUE for
+        drag_drop within the drop zone.
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
+        a XmTRANSFER_FAILURE if no drop site is found, not
+        on every drop!
+
+Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkeditable.c: Add flags field to 
+        GtkTargetEntry table.
+       
+       * gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
+        windows as always viewable, since we can't track their
+        map-state reliably without speed problems. (Fixes
+        problem where updating didn't occur properly within
+        GtkPlug)
+
 Sat Jan 23 13:41:00 1999  Jeff Garzik  <jgarzik@pobox.com>
 
        * gtk/gtkctree.c
index 108535fc0067910331b8be5f8903c2e92f8a31a5..d9f2210615857aa37446fc934d63ac04d5a706ca 100644 (file)
@@ -1,3 +1,35 @@
+Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkdnd.c (gdk_window_register_dnd): X expects
+        longs, not uint32 for XChangeProperty, when 
+        format == 32.
+
+       * gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
+        the MotifInitiatorInfo structure if necessary.
+
+       * gdk/gdkdnd.c: When extracting and constructing
+         Motif DND messages, don't use data.s[], data.l[]
+        since on 64bit architectures, these won't necessarily
+        be in the same place with data.b[]. 
+
+       * gtk/testdnd.c (target_drag_drop): Return TRUE for
+        drag_drop within the drop zone.
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
+        a XmTRANSFER_FAILURE if no drop site is found, not
+        on every drop!
+
+Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkeditable.c: Add flags field to 
+        GtkTargetEntry table.
+       
+       * gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
+        windows as always viewable, since we can't track their
+        map-state reliably without speed problems. (Fixes
+        problem where updating didn't occur properly within
+        GtkPlug)
+
 Sat Jan 23 13:41:00 1999  Jeff Garzik  <jgarzik@pobox.com>
 
        * gtk/gtkctree.c
index 108535fc0067910331b8be5f8903c2e92f8a31a5..d9f2210615857aa37446fc934d63ac04d5a706ca 100644 (file)
@@ -1,3 +1,35 @@
+Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkdnd.c (gdk_window_register_dnd): X expects
+        longs, not uint32 for XChangeProperty, when 
+        format == 32.
+
+       * gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
+        the MotifInitiatorInfo structure if necessary.
+
+       * gdk/gdkdnd.c: When extracting and constructing
+         Motif DND messages, don't use data.s[], data.l[]
+        since on 64bit architectures, these won't necessarily
+        be in the same place with data.b[]. 
+
+       * gtk/testdnd.c (target_drag_drop): Return TRUE for
+        drag_drop within the drop zone.
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
+        a XmTRANSFER_FAILURE if no drop site is found, not
+        on every drop!
+
+Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkeditable.c: Add flags field to 
+        GtkTargetEntry table.
+       
+       * gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
+        windows as always viewable, since we can't track their
+        map-state reliably without speed problems. (Fixes
+        problem where updating didn't occur properly within
+        GtkPlug)
+
 Sat Jan 23 13:41:00 1999  Jeff Garzik  <jgarzik@pobox.com>
 
        * gtk/gtkctree.c
index 108535fc0067910331b8be5f8903c2e92f8a31a5..d9f2210615857aa37446fc934d63ac04d5a706ca 100644 (file)
@@ -1,3 +1,35 @@
+Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkdnd.c (gdk_window_register_dnd): X expects
+        longs, not uint32 for XChangeProperty, when 
+        format == 32.
+
+       * gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
+        the MotifInitiatorInfo structure if necessary.
+
+       * gdk/gdkdnd.c: When extracting and constructing
+         Motif DND messages, don't use data.s[], data.l[]
+        since on 64bit architectures, these won't necessarily
+        be in the same place with data.b[]. 
+
+       * gtk/testdnd.c (target_drag_drop): Return TRUE for
+        drag_drop within the drop zone.
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
+        a XmTRANSFER_FAILURE if no drop site is found, not
+        on every drop!
+
+Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkeditable.c: Add flags field to 
+        GtkTargetEntry table.
+       
+       * gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
+        windows as always viewable, since we can't track their
+        map-state reliably without speed problems. (Fixes
+        problem where updating didn't occur properly within
+        GtkPlug)
+
 Sat Jan 23 13:41:00 1999  Jeff Garzik  <jgarzik@pobox.com>
 
        * gtk/gtkctree.c
index d9c8f3eb0b4dc30a39d4ceba5043f469ceac062b..7cdde55dc6c11abe5518f608751111df81d5f74d 100644 (file)
@@ -2526,7 +2526,9 @@ gdk_window_is_viewable (GdkWindow *window)
 
   g_return_val_if_fail (window != NULL, FALSE);
 
-  while (private && (private != &gdk_root_parent))
+  while (private && 
+        (private != &gdk_root_parent) &&
+        (private->window_type != GDK_WINDOW_FOREIGN))
     {
       if (!private->mapped)
        return FALSE;
index d9c8f3eb0b4dc30a39d4ceba5043f469ceac062b..7cdde55dc6c11abe5518f608751111df81d5f74d 100644 (file)
@@ -2526,7 +2526,9 @@ gdk_window_is_viewable (GdkWindow *window)
 
   g_return_val_if_fail (window != NULL, FALSE);
 
-  while (private && (private != &gdk_root_parent))
+  while (private && 
+        (private != &gdk_root_parent) &&
+        (private->window_type != GDK_WINDOW_FOREIGN))
     {
       if (!private->mapped)
        return FALSE;
index ad97401cf431c60472fdd5f18b9d17a9ec2a4ed1..d85743f874756805e356231cb0b933f8eafd0c27 100644 (file)
@@ -370,9 +370,9 @@ static void
 gtk_editable_init (GtkEditable *editable)
 {
   static const GtkTargetEntry targets[] = {
-    { "STRING", TARGET_STRING },
-    { "TEXT",   TARGET_TEXT }, 
-    { "COMPOUND_TEXT", TARGET_COMPOUND_TEXT }
+    { "STRING", 0, TARGET_STRING },
+    { "TEXT",   0, TARGET_TEXT }, 
+    { "COMPOUND_TEXT", 0, TARGET_COMPOUND_TEXT }
   };
   static const gint n_targets = sizeof(targets) / sizeof(targets[0]);